JavaScript

listObj.setListSize Method

Syntax

listObj.setListSize(height [, width]);

Arguments

heightstringundefined

Height of the List specified as a CSS size value. Pass in the value undefined if you don't want to change the height when setting the width.

widthstring

Width of the List specified as a CSS size value.

Description

Sets the height and width of the List control.

Example

var listObj = {dialog.object}.getControl('list1');

if (listObj) {
    listObj.setListSize('200px','300px'); //set both height and width
    listObj.setListSize('200px'); //set height only
    listObj.setListSize(undefined,'300px'); //set width only
}